package com.nhjf.model.system;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;


/**
 * 
 * @类功能说明：机构
 * @版本：V1.0
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "organization")
public class Organization extends BaseModel{
	/**
	 * 主键
	 */
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "native")
	@Column(name = "id", unique = true)
	private Long id;
	/**
	 *组织名
	 */
	@Column(name = "name")
	private String name;
	/**
	 *地址
	 */
	@Column(name = "address")
	private String address;
	/**
	 *电话
	 */
	@Column(name = "phone")
	private String phone;
	/**
	 *状态1可用2作废
	 */
	@Column(name = "status")
	private Integer status;
	/**
	 *创建人
	 */
	@Column(name = "createUser")
	private Long createUser;
	/**
	 *创建时间
	 */
	@Column(name = "createDate")
	private Date createDate;
	/**
	 * 省
	 * @return
	 */
	@Column(name = "province")
	private Long province;
	
	/**
	 * 市
	 * @return
	 */
	@Column(name = "city")
	private Long city;
	
	/**
	 * 县
	 * @return
	 */
	@Column(name = "county")
	private Long county;
	/**
	 * 机构评语
	 */
	@Column(name = "comment")
	private String comment;
	/**
	 * 机构详情
	 */
	@Column(name = "details")
	private String details;
	/**
	 * 是否开启机构宣传：1是 、2否
	 */
	@Column(name = "isopenAgencyPromotion")
	private Integer isopenAgencyPromotion;
	/**
	 * 储存空间大小
	 */
	@Column(name = "storageSize")
	private Long storageSize;
	/**
	 * 机构logo
	 */
	@Column(name = "logo")
	private String logo;
	@Transient
	private String provinces;
	@Transient
	private String citys;
	@Transient
	private String countys;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getCreateUser() {
		return createUser;
	}
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Long getProvince() {
		return province;
	}
	public void setProvince(Long province) {
		this.province = province;
	}
	public Long getCity() {
		return city;
	}
	public void setCity(Long city) {
		this.city = city;
	}
	public Long getCounty() {
		return county;
	}
	public void setCounty(Long county) {
		this.county = county;
	}
	public String getProvinces() {
		return provinces;
	}
	public void setProvinces(String provinces) {
		this.provinces = provinces;
	}
	public String getCitys() {
		return citys;
	}
	public void setCitys(String citys) {
		this.citys = citys;
	}
	public String getCountys() {
		return countys;
	}
	public void setCountys(String countys) {
		this.countys = countys;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public String getDetails() {
		return details;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	public Integer getIsopenAgencyPromotion() {
		return isopenAgencyPromotion;
	}
	public void setIsopenAgencyPromotion(Integer isopenAgencyPromotion) {
		this.isopenAgencyPromotion = isopenAgencyPromotion;
	}
	public String getLogo() {
		return logo;
	}
	public void setLogo(String logo) {
		this.logo = logo;
	}
	public Long getStorageSize() {
		return storageSize;
	}
	public void setStorageSize(Long storageSize) {
		this.storageSize = storageSize;
	}
	
	
}
